package inherit.homework1;

public class TestInstrucor {
    public static void main(String[] args) {
        JavaTeacher javaTeacher =new JavaTeacher("王大枪","男",22,3,"合肥科教");
        javaTeacher.showMySelf();
        javaTeacher.giveLession();
        NetTeacher netTeacher= new NetTeacher("王小妹","男",21,2,"北京科教");
        javaTeacher.showMySelf();
        netTeacher.giveLession();
    }
}
